package com.xinruke.hostels.central.manage.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author jinzhi
 */
@ApiModel("楼栋详情结果DTO")
@Data
public class BuildingDetailQueryResultDTO {
    @ApiModelProperty(value = "楼栋id", required = true)
    @NotNull(message = "楼栋id不能为空")
    private Integer id;

    /**
     * 酒店ID
     */
    @ApiModelProperty(value = "酒店ID", required = true)
    private Integer jiudianId;

    /**
     * 楼栋名称
     */
    @ApiModelProperty(value = "楼栋名称", required = true)
    @NotNull(message = "楼栋名称不能为空")
    private String mingcheng;

    /**
     * 锁号
     */
    @ApiModelProperty(value = "锁号")
    private String suohao;
    /**
     * 面积
     */
    @ApiModelProperty(value = "面积")
    private String mianji;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String beizhu;

    /**
     * 楼层数
     */
    @ApiModelProperty(value = "楼层数")
    private Integer loucengshu;

    /**
     * 房间数
     */
    @ApiModelProperty(value = "房间数")
    private Integer fangjianshu;

    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID")
    private Integer chuangjianrenId;
    /**
     * 删除标识
     */
    @ApiModelProperty(value = "0删除，1删除", required = true)
    private Byte shanchubiaoshi;
    /**
     * 更新人ID
     */
    @ApiModelProperty(value = "更新人ID")
    private Integer gengxinrenId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date chuangjianshijian;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gengxinshijian;
}
